Skip to main content

View Post [edit]

Poster: Madhavananda Date: Aug 20, 2005 6:54am
Forum: faqs Subject: Re: Program/script used for grabbing stills?

No idea what they're using, but a simple AviSynth script will do this for you.

* * *

thisclip = avisource("your_video.avi").SelectEvery(25, 0).converttorgb24().assumefps(25)

ImageWriter(thisclip, "D:\Temp\avsframes\grab\grabbed_", start = 300, end = 400, type = "jpg")

* * *

The first figure of the SelectEvery command tells the script to select every 25 frames. If you use mpeg input, you'll have to use DirectShowSource() instead of avisource() to import the video. You can exclude the start and stop parameters from the ImageWriter if you want to write the selected frames from the entire video.

More on AviSynth:

http://www.avisynth.org/ImageWriter

I'm too tight on time to go into any length explaining how AviSynth works, just throwing in an idea to get you started. You can get more help for example at the Videohelp.Com forums.

This should get you started, one possible way to do this.

Reply [edit]

Poster: Snover Date: Aug 20, 2005 9:19am
Forum: faqs Subject: Re: Program/script used for grabbing stills?

Thank you very much. I figured that AviSynth could do what I wanted, but I wasn't sure how.